<!DOCTYPE html>
<html lang="zh-CN">
	<head>
		<meta charset="utf-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<script>
		  var coverSupport = 'CSS' in window && typeof CSS.supports === 'function' && (CSS.supports('top: env(a)') ||
			CSS.supports('top: constant(a)'))
		  document.write(
			'<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' +
			(coverSupport ? ', viewport-fit=cover' : '') + '" />')
		</script>
		<title>
			<%= htmlWebpackPlugin.options.title %>
		</title>
		
		<link rel="stylesheet" href="<%= BASE_URL %>static/index.<%= VUE_APP_INDEX_CSS_HASH %>.css" />
		<link rel="manifest" href="<%= BASE_URL %>manifest.json?v=202312">  
		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="apple-mobile-web-app-status-bar-style" content="default">
		<meta name="apple-mobile-web-app-title" content="YTHeart">
		<link rel="apple-touch-icon" href="<%= BASE_URL %>static/logo.png">
		<meta name="mobile-web-app-capable" content="yes">
		<!-- <script src="<%= BASE_URL %>installPWA.js"></script> -->
		<meta name="theme-color" content="#ffffff">
	</head>
	<body>
		<!-- 该文件为 H5 平台的模板 HTML，并非应用入口。 -->
		<!-- 请勿在此文件编写页面代码或直接运行此文件。 -->
		<!-- 详见文档：https://uniapp.dcloud.io/collocation/manifest?id=h5-template -->
		<script>
			if ('serviceWorker' in navigator) {
				// 在 load 事件触发后注册 Service Worker，确保 Service Worker 的注册不会影响首屏速度
				window.addEventListener('load', function () {
					// 注册 Service Worker
					navigator.serviceWorker.register('/h5/sw.js').then(function (registration) {
					// 注册成功
					console.log('ServiceWorker registration successful with scope: ', registration.scope)
					}).catch(function (err) {
					// 注册失败 :(
					console.warn('ServiceWorker registration failed: ', err)
					})
				})
			}
		</script>
		<noscript>
			<strong>Please enable JavaScript to continue.</strong>
		</noscript>
		<div id="app"></div>
		<!-- built files will be auto injected -->
	</body>
</html>
